package com.guijq.codesegment.java8;

import java.util.function.Consumer;

/**
 * @Author timyag
 * @Date 2021/4/15 9:21
 * @Version 1.0
 */
public class ConsumerTest {

    public static void test1(Consumer<String> build) {
        System.out.println(build);
        build.accept("hello");
    }

    public static void main(String[] args) {
        ConsumerTest.test1(str->{
            System.out.println(str + "： 你好");
        });
    }
}
